<template>
  <div class="title">设备信息</div>
  <div class="ful">
    <div class="left">医院</div>
    <div class="right">{{ store.basicData.hospital_name }}</div>
  </div>
  <div class="ful">
    <div class="left">科室</div>
    <div class="right">{{ store.department_name }}</div>
  </div>
  <div class="ful">
    <div class="left">ID</div>
    <div class="right">{{ store.basicData.id }}</div>
  </div>
  <div class="ful">
    <div class="left">序列号</div>
    <div class="right">{{ store.basicData.serial }}</div>
  </div>
  <div class="ful">
    <div class="left">名称</div>
    <div class="right">{{ store.basicData.name }}</div>
  </div>
  <div class="ful">
    <div class="left">型号</div>
    <div class="right">{{ store.basicData.marking }}</div>
  </div>
  <div class="ful">
    <div class="left">软件版本</div>
    <div class="right">{{ store.basicData.software_version }}</div>
  </div>
  <div class="ful">
    <div class="left">附件</div>
    <div class="right">{{ store.basicData.enclosure }}</div>
  </div>
  <div class="ful">
    <div class="left">保养时间</div>
    <div class="right">{{ store.basicData.next }}</div>
  </div>
  <div class="ful">
    <div class="left">状态</div>
    <div
      class="right"
      :style="{
        color:
          store.basicData.status == 0
            ? '#F4554A'
            : store.basicData.status == 1
            ? '#52C41A'
            : '#FFAB00',
      }"
    >
      {{
        store.basicData.status == 0
          ? "保修中"
          : store.basicData.status == 1
          ? "正常"
          : "已停用"
      }}
    </div>
  </div>
  <div class="ful">
    <div class="left">设备生产年份</div>
    <div class="right">{{ store.basicData.create_date }}</div>
  </div>
  <div class="ful">
    <div class="left">设备使用年限</div>
    <div class="right">{{ store.basicData.user_year || '-' }}年</div>
  </div>
</template>
<script setup>
import { basicData } from "../store/data.js";
const store = basicData();
</script>